//=============================================================================
#include "CLua.h"

//=============================================================================
int Lua_Camera_SetCenter(lua_State* Lua_Handle) {
    float X = lua_tonumber(Lua_Handle, 1);
    float Y = lua_tonumber(Lua_Handle, 2);

    lua_pushnumber(Lua_Handle, 1);

    return 1;
}

//-----------------------------------------------------------------------------
int Lua_Camera_SetCenterToEntity(lua_State* Lua_Handle) {
    float ID = lua_tointeger(Lua_Handle, 1);

    if(ID < 0) {
        lua_pushnumber(Lua_Handle, 0);
    }else{
        lua_pushnumber(Lua_Handle, 1);
    }

    return 1;
}

//-----------------------------------------------------------------------------
int Lua_Camera_SetCenterToPlayer(lua_State* Lua_Handle) {
    float ID = lua_tointeger(Lua_Handle, 1);

    if(ID < 0) {
        lua_pushnumber(Lua_Handle, 0);
    }else{
        lua_pushnumber(Lua_Handle, 1);
    }

    return 1;
}

//-----------------------------------------------------------------------------
int Lua_Camera_SetPosition(lua_State* Lua_Handle) {
    float X = lua_tonumber(Lua_Handle, 1);
    float Y = lua_tonumber(Lua_Handle, 2);

    lua_pushnumber(Lua_Handle, 1);

    return 1;
}

//-----------------------------------------------------------------------------
int Lua_Camera_Move(lua_State* Lua_Handle) {
    float SpeedX = lua_tonumber(Lua_Handle, 1);
    float SpeedY = lua_tonumber(Lua_Handle, 2);

    lua_pushnumber(Lua_Handle, 1);

    return 1;
}

//=============================================================================
